package com.easy.dn.ui.main.contract;

import com.easy.common.base.BaseModel;
import com.easy.common.base.BasePresenter;
import com.easy.common.base.BaseView;
import com.easy.dn.bean.SearchResumeBean;

import java.util.Map;

import rx.Observable;

/**
 * Created by 丁宁
 * on 2017/7/21.
 */

public interface SearchResumeContract {

    interface Model extends BaseModel {
        Observable<SearchResumeBean> getResumeList(Map<String , String> map);
    }

    interface View extends BaseView {
        void returnResumeList(SearchResumeBean resumeBean);
        void returnLoadOrRefreshResumeList(SearchResumeBean resumeBean);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getData(Map<String , String> map);
        public abstract void getLoadOrRefreshData(Map<String , String> map);
    }
}
